import pandas as pd

# 文本格式的数据 csv(,) tsv(\t) txt(自定义分隔符)

data = pd.read_csv('data/lj_data.csv')
# 获取前n行
print(data.head())

# 行索引
print(data.index)

# excel数据
data = pd.read_excel('data/sales.xlsx')
print(data.head())

# mysql
# pd.read_sql(sql, conn=数据库连接对象)